package com.jjiang.bbmall.order.feign;

import com.jjiang.bbmall.order.vo.MemberReceiveAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "bbmall-member", url = "http://127.0.0.1:8000")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
    List<MemberReceiveAddressVo> getAddresses(@PathVariable("memberId") Long memberId);
}
